package com.atguigu06.polymorphism.exer3;

/**
 * ClassName: Graduate
 * Package: com.atguigu06.polymorphism.exer3
 * Description:
 *
 * @Author ZY
 * @Create 21:20
 * @Version 1.0
 */
public class Graduate extends Student{
    public String major = "IT";
    public String getInfo(){
        return "Name: " + name + "\n" + "age: " + age +
                "\n" + "school: " + school + "\n" + "major: " + major;
    }
}
